package com.challenge.smsbase.Exception;

import com.challenge.smsbase.Enum.ResultEnum;

/**
 * @author ZhuAnji
 */

public class SystemException extends RuntimeException{
    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public SystemException(ResultEnum resultEnum){
        this.code = resultEnum.getCode();
        this.message = resultEnum.getMessage();
    }
}